<?php

/**
 * ConceptoCfHasEmpresa form.
 *
 * @package    cronos-doctrine
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ConceptoCfHasEmpresaForm extends BaseConceptoCfHasEmpresaForm
{
  public function configure()
  {
      
      unset(
          $this['created_at'],
          $this['updated_at']
      );
      
      $this->widgetSchema['empresa_id'] = new sfWidgetFormInputHidden(array(),array('value'=> sfContext::getInstance()->getUser()->getAttribute('agente_user_empresa_id')));
      
      
  
      
     //Cambiar a lista y su validador d
      $this->widgetSchema['dias'] = new sfWidgetFormChoice(array(
         'choices' => ConceptoCf::$dias,
         'expanded' => true,
         'multiple' => true,
      ));
      
      
      $this->validatorSchema['dias'] = new sfValidatorChoice( 
            array('choices'=>array_keys(ConceptoCf::$dias),
            'multiple'=>true, 'required'=>false
   ));
      
         
         
  }
}
